package com.zyc.msmservice.utils;

import java.util.Random;

/**
 * @author zyc
 * @create 2022-02-28-10:29
 */
public class MsmUtils {


    public static String getFourRandom() {
        Random random = new Random();
        String fourRandom = random.nextInt(10000) + "";
        if (fourRandom.length() < 4) {
            for (int i = 0; i < 4 - fourRandom.length(); i++) {
                fourRandom += "0";
            }
        }
        return fourRandom;
    }
}
